<?php
/*
* Copyright (c) 2010 by Cediti
*
* You may distribute under the terms of either the GNU Lesser General
* Public License or the new BSD License, as specified in the README file.
*/
// created :	18 March 2010
// version :	18 March 2010

/**
 * Indicates whether or not the repository exposes renditions of document or folder objects.
 *  none: The repository does not expose renditions at all.
 *  read: Renditions are provided by the repository and readable by the client.
 */
class Cmis_Repository_Capability_Renditions extends Cmis_Repository_Capability_Abstract
{
    const VALUE_NONE = 'none';
    const VALUE_READ = 'read';

	protected function _setValue($value)
	{
		$this->_value = trim($value);
		switch ($this->_value)
		{
            case self::VALUE_READ :
			case self::VALUE_NONE :
				break;
            default:
            	$this->_value = self::VALUE_NONE;
		}
	}
}

# EOF
